home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / tsqed16.zip / SPELL.QMA < prev    next >
Text File  |  1991-12-26  |  2KB  |  53 lines

  1. *                                                All rights reserved
  2. * Spell-check the current QEdit file
  3. * By Timo Salmi Thu 26-Dec-91
  4. *
  5. * To compile this macro apply QMAC SPELL.MAC SPELL.QMA /A- /B
  6. *
  7. * To use this command macro you need the following programs and files
  8. *  QMAC.EXE macro compiler from /pc/editor/qmac215.zip (v2.1 is ok)
  9. *  SPELL.EXE, SPELLED3.DNY, SHORT.DNY from /pc/ts/tschek14.zip
  10. *  LIST.COM from garbo.uwasa.fi:/pc/fileutil/list76b.zip
  11. *
  12. * Before compiling the macro, edit the paths (c:\sanat) to conform to
  13. * where you have your files.
  14. *
  15. * To make these macros available you can e.g. first invoke the main
  16. * menu (usually F10) and select Macro: Read Macro: spell.mac. Then you
  17. * can invoke them with ALT-5 or ALT-6.  Or you can make ALT-5 part of
  18. * your key default key definition file. (See @- in QEDTSH.KEY  and
  19. * QEdit documentation for the details)
  20.  
  21. * ┌─────────────────────────────────────────────────┐
  22. * │ Check the spelling of a saved QEdit file, ALT-5 │
  23. * └─────────────────────────────────────────────────┘
  24. @5 MacroBegin
  25.     Dos 'c:\sanat\spell c:\sanat\spelled3.dny /f '
  26.     CurrentFilename
  27.     ' | list /s'
  28.     Return
  29.  
  30. * ┌────────────────────────────────────────────────────────┐
  31. * │ Extended checking of the spelling, handling cases like │
  32. * │ wouldn't, shouldn't, I'll etc, ALT-6                   │
  33. * └────────────────────────────────────────────────────────┘
  34. @6 MacroBegin
  35. *
  36. * Check with the ordinary dictionary and put results into a
  37. * temporary file
  38.     Dos 'c:\sanat\spell c:\sanat\spelled3.dny '
  39.     CurrentFilename
  40.     ' r:\$spell.tmp /b'
  41.     Return Return
  42. *
  43. * Check the spelling of the temporary file using the second
  44. * dictionary, which includes the special cases like shouldn and ll.
  45.     Dos 'c:\sanat\spell c:\sanat\short.dny '
  46.     ' r:\$spell.tmp /f'
  47.     ' | list /s'
  48.     Return Return
  49. *
  50. * Delete the temporary file
  51.     Dos 'del r:\$spell.tmp'
  52.     Return Return
  53.